<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class Qh_NetCourseCdkeyGroupRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'dataId' => 'bail|nullable|integer',
            'type' => 'bail|nullable|integer|in:1,2',
            'title' => 'bail|required|string',
            'channel' => 'bail|nullable|string',
            'expires' => 'bail|nullable|integer',
            'count' => 'bail|required|integer',
            'effective_type' => 'bail|required|int',
            'effective_days' => 'bail|nullable|int',
            'effective_hours' => 'bail|nullable|int',
            'effective_date' => 'bail|nullable|string',
        ];
    }
}
